Sublime Text3 是一款非常优秀的跨平台编辑器,工欲善其事必先利其器,作为一名开发同学,这里简单记录下Sublime Text3的配置。
有时候我们需要搭建静态服务器,这时候http-server就可以帮到我们实现啦~
安装命令:
|
|
运行命令:
切换到项目目录下1$ http-server [path] [options]
自定义命令
使用于package.json123"scripts": { "start": "http-server -a 0.0.0.0 -p 8000",}
如下例子1234567891011121314{ "name": "webapp", "version": "1.0.0", "description": "this is a webapp", "main": "index.js", "scripts": { "start": "http-server -a 0.0.0.0 -p 8000" }, "author": "vincentDu", "license": "ISC", "directories": { "test": "test" } }
|
|
参数配置:
|
|